#include "BLDCDrver6PWM.h"
#include "HalPWM.h"
#include "main.h"
void BLDCDriver6PWM_Init(BLDCDriver_t *handle)
{
	
}
// Set voltage to the pwm pin
void BLDCDriver6PWM_setPwm(float Ua, float Ub, float Uc) 
{
	
  // hardware specific writing
  // hardware specific function - depending on driver and mcu
	uint16_t a=0,b=0,c=0;
	a=(Ua*(float)PWM_PERIOD);
	b=(Ub*(float)PWM_PERIOD);
	c=(Uc*(float)PWM_PERIOD);
	Set_MotorPWM(a,b,c);
}
void BLDCDriver6PWM_SetPhaseState(PhaseState a,PhaseState b,PhaseState c)
{
	
}
void BLDCDriver6PWM_disable(void)
{
	Disable_MotorDrive();
}
void BLDCDriver6PWM_enable(void)
{
	Enable_MotorDrive();
}
